
<script setup>
import { ref, onMounted } from "vue";

const count = ref(0);

function increment() {
  count.value++;
}

onMounted(() => {
  console.log(`The initial value of count is ${count.value}`);
});
</script>

<template>
  <button @click="increment">The count is : {{ count }}</button>
</template>
<!-- <script setup>
import { reactive, onMounted } from "vue";
console.log("Hello composition apis and SFC");
const state = reactive({ count: 0 });

onMounted(() => {
  console.log(`The initial count is ${state.count}.`);
});
function increment() {
  state.count++;
}
</script>

<template>
  <button @click="increment">Count is : {{ state.count }}</button>
</template>

<style scoped>
button {
  font-weight: bold;
  forced-color-adjust: bottom;
}
</style> -->